import request from './request'

import urlConfig from './config.js'

export const uploadImgUrl = urlConfig + '/system/uploadImg'

//登录
export const login = (parmse)=> request.post('/login/login',false,parmse)

export const indexAdv = (parmse)=> request.post('/index/adv',true,parmse)

export const indexIndex = (parmse)=> request.post('/index/index',true,parmse)

export const userIndex = (parmse)=> request.post('/user/list',true,parmse)

export const videoList = (parmse)=> request.post('/jobs/list',true,parmse)

export const videoDetail = (parmse)=> request.post('/jobs/info',true,parmse)

export const articleList = (parmse)=> request.post('/article/list',true,parmse)

export const articleDetail = (parmse)=> request.post('/article/info',true,parmse)

//商城首页
export const goodsIndex = (parmse)=> request.post('/goods/index',true,parmse)

export const goodsList = (parmse)=> request.post('/goods/list',true,parmse)

export const goodsDetail = (parmse)=> request.post('/goods/info',true,parmse)

//订单相关
export const addOrder = (parmse)=> request.post('/order/confirmOrder',true,parmse)

export const orderList = (parmse)=> request.post('/order/list',true,parmse)

export const orderDetail = (parmse)=> request.post('/order/view',true,parmse)

// 地址增删改查
export const adrList = (parmse)=> request.post('/userConsignee/list',true,parmse)

export const adrAdd = (parmse)=> request.post('/userConsignee/add',true,parmse)

export const adrDefault = (parmse)=> request.post('/userConsignee/setDefault',true,parmse)

export const adrDel = (parmse)=> request.post('/userConsignee/del',true,parmse)

//用户
export const userInfo = (parmse)=> request.post('/user/info',true,parmse)

export const editUserInfo = (parmse)=> request.post('/user/editInfo',true,parmse)

//收藏
export const addCollect = (parmse)=> request.post('/userCollect/add',true,parmse)

export const delCollect = (parmse)=> request.post('/userCollect/del',true,parmse)

export const collectList = (parmse)=> request.post('/userCollect/list',true,parmse)































